package liangtWorkSpace.springAll.times.impl;

import liangtWorkSpace.springAll.times.bean.Beans;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author liangt
 * @ClassName: ExBeans
 * @title: ExBeans
 * @projectName liangtWorkSpace.springAll.times.bean
 * @description: 演示init-method -创建Bean时调用
 * @date 2020/10/15 16:28
 */
public class ExBeans implements InitializingBean, Beans {
    private String message;
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("Bean创建ExBeans时调用");
    }

    @Override
    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public void getMessage() {
        System.out.println("Hellp : "+message);
    }
}
